package  
{
	import com.bumpslide.ui.Applet;
	import com.bumpslide.ui.Box;
	import com.bumpslide.ui.behavior.DragBehavior;

	/**
	 * Drag Example 1 - Basic Drag
	 * 
	 * @author David Knape
	 * @mxmlc -sp+=../../classes -default-background-color 0xeeeeee -default-frame-rate 60
	 */
	public class DragExample01 extends Applet 
	{

		private var box:Box;

		
		override protected function addChildren():void
		{
			super.addChildren();
			
			box = new Box(0x000088, 64, 64, 100, 100);
			box.buttonMode = true; // show hand cursor
			addChild(box);			
			
			// make the box draggable
			DragBehavior.init(box);
		}
	}
}
